package com.retoc.oawx.domain.req;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
@Data
@ApiModel
public class UpdateDeptByIdReq {

        @NotNull
        @Min(1)
        private Integer id;

        @NotBlank
        @Pattern(regexp = "^[\\u4e00-\\u9fa5]{3,15}$")
        private String deptName;

}
